package net.xdclass.onlinexdclass.service.aoptest;

import lombok.extern.slf4j.Slf4j;
import net.xdclass.onlinexdclass.aop.interfaceaop.pojo.SysLogEntity;
import org.springframework.stereotype.Service;

/**
 * @author xuehu
 * @date 2020/12/10 16:29
 * aop测试Service
 */
@Slf4j
@Service
public class SysLogServiceimpl implements SysLogService {

    //此处用了@Slf4j日志注解
    //相当于private final Logger logger = LoggerFactory.getLogger(XXX.class);
    @Override
    public boolean save(SysLogEntity sysLogEntity) {
        //这里不做具体实现了
        log.info(sysLogEntity.getParams());
        return true;
    }
}
